#include "../src/reactor.hpp"

int main()
{
    bit_net::Socket sock;
    sock.create_client("127.0.0.1", 8500);
    
    std::string req = "GET / HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    while(1) {
        sock.send(req.c_str(), req.size());
        char buf[1024] = {0};
        sock.recv(buf, 1023);
        std::cout << buf << std::endl;
        sleep(3);
    }
    return 0;
}
